#ifndef DIAGRAMADER_H_
#define DIAGRAMADER_H_

#include "model/Diagram.h"
#include "ComponentDER.h"

class DiagramaDer: public Diagram {

protected:

    void serializeConnectedComponents(std::vector<Connector*> connectors, XmlWriter & writer);

public:
    DiagramaDer(const std::string & name = "unnamed");
    virtual ~DiagramaDer();
    virtual int getType();

    void serializeConnectedComponents(Component* component, XmlWriter & writer);
    void validateDiagram(std::fstream & filestr);
};

#endif /* DIAGRAMADER_H_ */
